<?php
class Frontend_Table_Row_Query extends Custom_Model_Table_Row_Abstract
{
    public function getUserName()
    {
        $userId = $this->getRow()->user_id;
        $user = Wenda::getTable('User')->findById($userId);
        return $user->name;
    }

    public function getUserGroup()
    {
        $userId = $this->getRow()->user_id;
        $user = Wenda::getTable('User')->findById($userId);
        return $user->getGroup();
    }

    public function isFinish()
    {
        return $this->getRow()->finish == 'Y' ? true : false;
    }
}
